import array
import binascii

s = b'This is a array'
a = array.array('b', s)

print('As byte string:', s)
print('As array:', a)
print('As hex:', binascii.hexlify(a))
